package com.ylpms.agme.service;

import com.ylpms.agme.dao.RegionDao;
import com.ylpms.agme.entity.RegionEntity;
import com.ylpms.agme.entity.StationEntity;
import com.ylpms.too.AjaxJson;
import com.ylpms.too.Table;
import org.springframework.stereotype.Service;
import sun.tools.jconsole.Tab;

import javax.annotation.Resource;
import java.util.List;

@Service
public class RegionService {

    @Resource
    RegionDao regionDao;

    public RegionEntity getRegionById(int regionid){
         return regionDao.getRegionById(regionid);
    }

    public List<RegionEntity> getRegionsByCropCode(String cropcode){
        return regionDao.getRegionsByCropCode(cropcode);
    }
}
